package com.ghck.server.utils;

public class IntegerUtil {
	
	/**
	 * 判断参数是否是一个正整数<br><br>
	 * if(i instanceof Integer){<br>
	 *&nbsp;&nbsp; 		Integer ii = (Integer) i;<br>
	 * &nbsp;&nbsp;	    return ii>0;<br>
	 * 	}<br>
	 *	return false;<br>
	 */
	public static boolean isPositiveInteger(Object i){
		if(i instanceof Integer){
			Integer ii = (Integer) i;
			return ii>0;
		}
		return false;
	}
	
	public static boolean isNotPositiveInteger(Object i){
		return !isPositiveInteger(i);
	}
}